package com.mall.user.service.impl;

import com.mall.user.entity.param.RolePermissionAddParam;
import com.mall.user.entity.param.RolePermissionEditParam;
import com.mall.user.entity.po.RolePermission;
import com.mall.user.entity.vo.RolePermissionVO;
import com.mall.user.mapper.RolePermissionMapper;
import com.mall.user.service.IRolePermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wuyijie
 * @since 2021-06-20
 */
@Service
public class RolePermissionServiceImpl extends ServiceImpl<RolePermissionMapper, RolePermission> implements IRolePermissionService {
    @Autowired
    private RolePermissionMapper rolePermissionMapper;

    @Override
    public int saveBatch(List<RolePermissionAddParam> rolePermissionAddParamList) {
        return rolePermissionMapper.insertBatch(rolePermissionAddParamList);
    }

    @Override
    public int deleteByRoleId(int userId) {
        return 0;
    }

    @Override
    public int updateBatch(List<RolePermissionEditParam> rolePermissionEditParamList) {
        return 0;
    }

    @Override
    public List<RolePermissionVO> queryByRoleId(int userId) {
        return null;
    }
}
